<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>代码视图</title>
  <link href="../Styles/styles.css" rel="stylesheet" type="text/css"/>
</head>

<body>
  <h2 id="code_view">代码视图</h2>

  <p class="h2subheading">— 直接编辑 HTML —</p>

  <p>Code View allows you to directly edit the HTML code included in your EPUB and is the most common way to edit files for advanced users.</p>
  <p>使用“代码视图”，您可以直接编辑 EPUB 中包含的 HTML 代码，这是高级用户编辑文件的最常用方法。</p>

  <div class="image">
    <img alt="" src="../Images/code-view-mac.png"/>
  </div>

  <div class="tip">
    <p class="tiptext">Use the <a href="../Text/preview.html">Preview</a> window to display a read-only book view version of the page you are editing in Code View.</p>
    <p class="tiptext">使用 <a href="../Text/preview.html">预览</a> 窗口显示您在“代码视图”中编辑的页面的只读书本视图版本。</p>
  </div>

  <p>Code View is very powerful, but you must be careful when editing it to ensure you enter valid HTML code.</p>
  <p>代码视图功能非常强大，但是在编辑它时必须小心，以确保输入有效的 HTML 代码。</p>

  <p>In addition to displaying your HTML code exactly as it is in your EPUB, Code View highlights tags and elements in colors to make it easier to read and identify issues.</p>
  <p>除了完全显示 EPUB 中的 HTML 代码外，“代码视图”还以颜色突出显示标签和元素，从而使阅读和识别问题更加容易。</p>

  <div class="tip">
    <p class="tiptext">You can change the colors used for highlighting in Code View using <a href="../Text/preferences.html#preferences_appearance">Preferences</a>.</p>
    <p class="tiptext">您可以使用 <a href="../Text/preferences.html#preferences_appearance">首选项</a> 更改代码视图中用于突出显示的颜色。</p>
  </div>

  <h3 class="sigil_not_in_toc">格式化</h3>

  <p>All of the buttons on the <a href="../Text/user_interface.html#formatting_toolbar">formatting toolbar</a> are available for you to use.</p>
  <p><a href="../Text/user_interface.html#formatting_toolbar">格式工具栏</a>上的所有按钮都可供您使用。</p>

  <h3 class="sigil_not_in_toc">上下文菜单</h3>

  <p>Right-click on text to see a context menu which includes the following options:</p>
  <p>右键单击文本以查看包含以下选项的上下文菜单：</p>

  <ul>
    <li><span class="listheading">Clips:</span> Select from any text <a href="../Text/clips.html">Clips</a> you have defined.</li>
    <li><span class="listheading">剪辑：</span>从您定义的任何文本 <a href="../Text/clips.html">剪辑</a> 中选择。</li>

    <li><span class="listheading">Add To Clips:</span> Save the selected text to your Clips.</li>
    <li><span class="listheading">添加到剪辑：</span>将选定的文本保存到剪辑中。</li>

    <li><span class="listheading">Go To Link Or Style:</span> Same as <span class="menuitem">Search→Go to Link or Style</span>.</li>
    <li><span class="listheading">转到链接或样式：</span>与 <span class="menuitem">搜索→转到链接或样式</span> 相同。</li>

    <li><span class="listheading">Mark Selected Text:</span> Same as <span class="menuitem">Search→Mark Selected Text</span>. May also show Unmark Marked Text.</li>
    <li><span class="listheading">标记所选文本：</span>与<span class="menuitem">搜索→标记所选文本</span>相同。可能还会显示未标记的标记文本。</li>

    <li><span class="listheading">重新格式化HTML：</span> 

    <ul>
      <li><span class="listheading">Clean Source:</span> Clean the current file using your preferences.</li>
      <li><span class="listheading">清除源：</span>使用您的首选项清洁当前文件。</li>

      <li><span class="listheading">Clean Source – All HTML Files:</span> Clean all HTML files using your preferences.</li>
      <li><span class="listheading">清理源 - 所有 HTML 文件：</span>使用您的首选项清理所有 HTML 文件。</li>

      <li><span class="listheading">To Valid HTML:</span> Modify the current file to make it valid HTML if they aren’t already.</li>
      <li><span class="listheading">要验证 HTML：</span>修改当前文件，使其尚未成为有效 HTML。</li>

      <li><span class="listheading">To Valid HTML – All HTML Files:</span> Modify all HTML files to make them valid HTML if they aren’t already.</li>
      <li><span class="listheading">要验证 HTML - 所有 HTML 文件：</span>修改所有 HTML 文件，以使它们（如果尚未使用）成为有效的 HTML。</li>
    </ul></li>
  </ul>

  <p>Right-click on a misspelled word to see these options:</p>
  <p>右键单击拼写错误的单词以查看以下选项：</p>

  <ul>
    <li><span class="listheading"><i>suggestions</i>:</span> Select from suggested alternatives.</li>
    <li><span class="listheading"><i>建议</i>：</span>从建议的替代中选择。</li>

    <li><span class="listheading">Add To Default Dictionary:</span> Save the word to the default dictionary selected in Preferences.</li>
    <li><span class="listheading">添加到默认词典：</span>将单词保存到“首选项”中选择的默认词典中。</li>

    <li><span class="listheading">Add To Dictionary:</span> Save the word to the dictionary you select from the submenu.</li>
    <li><span class="listheading">添加到词典：</span>将单词保存到您从子菜单中选择的词典。</li>

    <li><span class="listheading">Ignore:</span> Skip spell checking this word until Sigil is restarted.</li>
    <li><span class="listheading">忽略：</span>跳过拼写检查，直到重新启动 Sigil。</li>
  </ul>

  <p>Right-click on an image to see these options:</p>
  <p>右键单击图像以查看以下选项：</p>

  <ul>
    <li><span class="listheading">View Image:</span> Displays the image in a resizable window. You can also Ctrl Click on the filename or use the Go To Link Or Style shortcut. View Image will resize the image to fit the window, and can remain open while you edit.</li>
    <li><span class="listheading">查看图像：</span>在可调整大小的窗口中显示图像。您也可以Ctrl单击文件名或使用“转到链接或样式”快捷方式。“查看图像”将调整图像大小以适合窗口，并且在您编辑时可以保持打开状态。</li>

    <li><span class="listheading">Open Tab For Image:</span> Opens the image file in a tab at full resolution.</li>
    <li><span class="listheading">打开图像的标签：</span>以全分辨率打开标签中的图像文件。</li>
  </ul>

  <p>加上通常的选项：</p>

  <ul>
    <li>Undo</li>

    <li>Redo</li>

    <li>Cut</li>

    <li>Copy</li>

    <li>Paste</li>

    <li>Delete</li>

    <li>Select All</li>
  </ul>
</body>
</html>